package com.dau.system.config.shiro;

import com.dau.entity.system.user.UserProfile;
import org.apache.shiro.SecurityUtils;

/**
 * Shiro Util
 *
 * @author tzj
 * @date 2024/11/13
 */
public class ShiroUtil {
    public static UserProfile getProfile(){
        return (UserProfile) SecurityUtils.getSubject().getPrincipal();
    }
}
